/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kungkhies.services.category;

import com.kungkhies.domain.Category;
import com.kungkhies.domain.kungkhie.KungkhieSummary;
import java.io.File;
import org.springframework.stereotype.Service;

/**
 * Some basic classes for topic categorisation and managing
 * kungkhie categories.
 * 
 * The getCategoryFromFoo methods will use a Tika application
 * to try to place a kungkhie into a category.  Different
 * implementations will correspond to different categorisation 
 * schemes.
 * 
 * @author clayton
 */
@Service
public interface CategoryService
{
    public Category categoriseFromFile(File kungkhieFile);
    public Category categoriseFromXml(String kungkhieXml);
    public Category categoriseFromKungkhie(KungkhieSummary kungkhie);
    public void assignCategory(Category category, String packageName);
    public void changeCategory(Category category, String packageName);
    public void loadCategoriesFromFile(File categoryFile);
    public void loadCategoriesFromDb(String categoryScheme);
    
}
